.deui-switch {
    width: 3.5rem;
    height: 1.5rem;
    position: relative;
    vertical-align: top;
    border: 0.1rem solid #dddddd;
    background-color: #dddddd;
    border-radius: 1rem;
    background-clip: content-box;
    display: inline-block;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

.deui-switch:before {
    width: 1.5rem;
    height: 1.5rem;
    z-index: 1;
    position: absolute;
    top: -0.08rem;
    left: -0.05rem;
    border-radius: 1rem;
    background-color: #fff;
    content: '';
    -webkit-transition: left 0.2s;
    transition: left 0.2s;
}

.deui-switch:checked:before {
    left: 1.9rem;
}
/*“on”时，底部框状态默认颜色为蓝色*/
.deui-switch:checked {
    border-color: #03a9f4;
    background-color: #03a9f4;
}
/*“on”时，底部框颜色为绿色*/
.deui-switch-green:checked {
    border-color: #4cd964;
    background-color: #4cd964;
}
/*按钮带阴影的*/
.deui-shadow:before {
    -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, .4);
    box-shadow: 0 2px 5px rgba(0, 0, 0, .4);
}

.deui-testswitch{
    display: inline-block;
    position: absolute;
    top: 0.05rem;
    left: 0.8rem;
}

.deui-testswitch:before {
    font-size: 1rem;
    content: 'on';
    position: absolute;
    left: -0.35rem;
    color: #FFFFFF;

}

.deui-testswitch:after {
    font-size: 1rem;
    position: absolute;
    right: -2.25rem;
    content: 'off';
    color: #999999;

}
